﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ProShop.Master" AutoEventWireup="true" CodeBehind="thanhvien.aspx.cs" Inherits="WEBSITE.member.thanhvien" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head_page_title" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head_script" runat="server">
    <script type="text/javascript" src="../content/js/jquery.js"></script>
    <script type="text/javascript" src="../content/modules/member/js/member.js"></script>
	<script type="text/javascript" src="../content/js/ajax.js"></script>
	<script type="text/javascript" src="../content/js/popup/jquery.blockUI.js"></script>
    <script type="text/javascript" src="../content/modules/member/js/check_update_profile.js"></script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="head_css" runat="server">
    <link rel="stylesheet" href="../content/modules/member/css/member.css" type="text/css" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="menu_top" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="box_ads" runat="server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="category_list" runat="server">
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="navation_bar" runat="server">
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="top_page" runat="server">
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="left_page" runat="server">
    <td id="vnt-sidebar">
        <div class="box">
            <div class="box-title">
                <h1> Thông tin cá nhân</h1>
            </div> 
            <div class="box-content">
                <ul class="box_list">
                    <li><a href="thanhvien.aspx">Thay đổi thông tin cá nhân và mật khẩu</a></li>
                    <li><a href="thanhvien.aspx?act=vieworder">Xem các đơn hàng đã mua</a></li>
                    <li><a href="thanhvien.aspx?act=logout">Thoát khỏi tài khoản</a></li>
                </ul>
            </div>
        </div>      
    </td>
</asp:Content>
<asp:Content ID="Content10" ContentPlaceHolderID="sidebar" runat="server">
    <td id="vnt-main">
        <div id="Member">
            <asp:ListView ID="profile_detail_fw" runat="server">
                <ItemTemplate>
                    <form action="thanhvien.aspx" name="frmMember" id="frmMember" method="post" enctype="multipart/form-data">
			            <div align="center"></div>
			            <h1 class="account_form">Thông tin tài khoản</h1>
			            <table cellspacing="2" cellpadding="2" border="0" align="center" width="100%">
				            <tbody>
					            <tr>
						            <td align="right" width="30%"><b>Tên thành viên</b></td>
						            <td><span class="fUsername"><%# DataBinder.Eval(Container.DataItem, "TenDN") %></span></td>
					            </tr>
					
					            <tr>
						            <td height="22" align="right">Địa chỉ email của tôi là (<font color="red">*</font>)</td>
						            <td height="22">
                                        <input type="text" style="width:300px;" value='<%# DataBinder.Eval(Container.DataItem, "Email") %>' class="textfiled" name="email_address" id="email_address" />
						            </td>
					            </tr>

					            <tr>
						            <td align="right"><b>Đổi mật khẩu mới.</b></td>
						            <td><span class="font_err">Điền mật khẩu mới để thay đổi mật khẩu (Nếu để trống sẽ giữ lại mật khẩu cũ)</span></td>
					            </tr>
					
					            <tr>
						
						            <td align="right">Mật khẩu (<font color="red">*</font>)</td>
						            <td>
                                        <input type="password" style="width:300px;" class="textfiled" name="pass" id="pass" />
						            </td>
					            </tr>

					            <tr>
						            <td align="right">Nhập lại mật khẩu (<font color="red">*</font>)</td>
						            <td>
                                        <input type="password" style="width:300px;" class="textfiled" name="re_password" id="re_password" />
						            </td>
					            </tr>
					
					            <tr>
						            <td align="right">Mã khách hàng </td>
						            <td>	
							            <input type="text" style="width:300px;" disabled="disabled" class="textfiled" name="ma_kh" id="ma_kh" value='<%# DataBinder.Eval(Container.DataItem, "MaKhachHang") %>' /> 
						            </td>
					            </tr>
				            </tbody>
			            </table>
	  
			            <h1 class="info_form">Một vài thông tin cụ thể về bạn</h1>

			            <table cellspacing="2" cellpadding="2" border="0" align="center" width="100%">
				            <tbody>
					            <tr>
						            <td height="22" align="right" width="30%">Họ tên của bạn (<font color="red">*</font>)</td>
						            <td height="22">
                                        <input type="text" style="width:300px;" value='<%# DataBinder.Eval(Container.DataItem, "HoTen") %>' class="textfiled" name="full_name" id="full_name" />
						            </td>
					            </tr>

					            <tr>	
						            <td height="22" align="right">Phái (<font color="red">*</font>)</td>
						            <td height="22">
                                        <input name="male" id="male" type="radio" value="1" checked="" /> Nam &nbsp; 
                                        <input name="female" id="female" type="radio" value="2" /> Nữ &nbsp; 
						            </td>
					            </tr>
					
					            <tr>
						            <td align="right">Điện thoại (<font color="red">*</font>)</td>
						            <td>
                                        <input type="text" style="width:300px;" class="textfiled" value='<%# DataBinder.Eval(Container.DataItem, "DienThoai") %>' name="phone" id="phone" />
						            </td>
					            </tr>
					
					            <tr>
						            <td height="22" align="right">Câu hỏi bí mật</td>
						            <td height="22">	
                                        <input type="text" style="width:300px;" value='<%# DataBinder.Eval(Container.DataItem, "CauHoi") %>' class="textfiled" name="cauhoi" id="cauhoi" /> 
						            </td>
					            </tr>
		
					            <tr>
						            <td align="right">Trả lời</td>
						            <td>
                                        <input type="text" style="width:300px;" class="textfiled" value='<%# DataBinder.Eval(Container.DataItem, "CauTraLoi") %>' name="traloi" id="traloi" />
						            </td>
					            </tr>
					
					            <tr>
						
						            <td align="right">Địa chỉ</td>
						            <td>	
                                        <input type="text" style="width:300px;" class="textfiled" value='<%# DataBinder.Eval(Container.DataItem, "DiaChi") %>' name="address" id="address" />
						            </td>
					            </tr>

					            <tr>
						            <td align="right">&nbsp;</td>
						            <td height="50">
							            <button id="btnEdit" name="btnEdit" type="submit" class="btn" value="Cập nhật"><span>Cập nhật</span></button> &nbsp;&nbsp; 
							            <button id="btnReset" name="btnReset" type="reset" class="btn" value="Nhập lại"><span>Nhập lại</span></button> 
						            </td>
					            </tr>
				            </tbody>
			            </table>
			            <p align="center"></p>
		            </form>
                </ItemTemplate>
            </asp:ListView>
            <asp:ListView ID="profile_orderlist" runat="server">
                <ItemTemplate>
                    <%# DataBinder.Eval(Container.DataItem, "MaDDH") %>
                </ItemTemplate>
                <EmptyItemTemplate>
                    Bạn chưa có đơn đặt hàng nào
                </EmptyItemTemplate>
            </asp:ListView>
	    </div>
    </td>
</asp:Content>
